package com.qingke.easyjava.xmlconverter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
 * The value object for holding Region infomation.
 * 
 * @author Qingke.me
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Region {

    @XmlAttribute(name = "id")
    private String id;

    @XmlElement(name = "name")
    private String name;

    @XmlElement(name = "boss")
    private String boss;

    @XmlElement(name = "avgIncome")
    private String avgIncome;

    @XmlElement(name = "superRegion")
    private String superRegion;

    public Region() {
    }

    public Region(String id) {
        this();

        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public String getAvgIncome() {
        return avgIncome;
    }

    public void setAvgIncome(String avgIncome) {
        this.avgIncome = avgIncome;
    }

    public String getSuperRegion() {
        return superRegion;
    }

    public void setSuperRegion(String superRegion) {
        this.superRegion = superRegion;
    }

    /**
     * The simple information for the region
     */
    public String toString() {
        return "[地区ID：" + id + "， 名称：" + name + "， 平均收入：" + avgIncome + "， 老板：" + boss + "]";
    }
}
